package cn.wolfcode.crm.web.controller;


import cn.wolfcode.crm.domain.CompensationInfo;
import cn.wolfcode.crm.service.ICompensationInfoService;
import cn.wolfcode.crm.util.JsonResult;
import cn.wolfcode.crm.util.PermissionName;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

//赔偿汇总表
@Controller
@RequestMapping("compersationInfo")
public class CompersationInfoController {

    @Autowired
    private ICompensationInfoService compensationInfoService;

    @RequestMapping("saveclaimcount")
    public void saveclaimcount(Long id){
        JsonResult result=new JsonResult();
            System.out.println(id);
            try {
                compensationInfoService.saveclaimcount(id);
            }catch (Exception e){
                e.printStackTrace();
            }



    }


}
